|
Autonomous Underwater Vehicles : TREX - installation
This page last changed on Aug 09, 2010 by fpy.
TREX not so complete cheatsheetPlan
SVN version and dependencies
![]() There are 3 active branches in TREX :
The two first branches rely on the same 3rd parties components and are fairly similar in the way they are compiled. The external tools needed are :
The Europa independent branch do not depend on Europa and will future the latest version of it in the future. It still depends on boost (1.40.0 or above) and jam Directory structure
We will assume on the rest of the document that this structure is respected.
Mac specific : installing development toolsYou need to have administration rights on this computer on the Finder : select menu Go > Connect to Server ... on the invite type : cifs://tornado.shore.mbari.org and <OK> enter your login and password select AppsAND <OK> under the directory Macs/DevelopperTools/XcodeTools select the version of xcode for the OS version of your computer (10.6 = Snow Leopard) and get the xcode*.dmg file you can then eject tornado disk double click on the xcode*.dmg to mount the file and then on Xcode.mpkg to start the installation Building our old version of Europa/PlasmaTo apply the patch and build Europa/Plasma with GCC 4.3: % cd $PLASMA_HOME % patch -p1 < plasma-gcc4.3.patch #i.e. the attached patch file % jam && jam Initializing TREX environment variables
% cd <path>/TREX (note: devConfig script need to be launched from this directory) % export HAS_AUV_LINUX=yes (note: do not define that if auv-linux is not compiled on your platform - e.g. Mac OS) % source devConfig % export VARIANTS=OPTIMIZED (note: to indicate to jam to compile in optimized mode ... so far debug mode is kind of broken as Europa is too strong in some of its assert) % cd $PLASMA_HOME % jam && jam (note: it is better to run it twice to make sure that the binary dependencies are taken care of) To compile TREX libraries, first download the Boost C++ library (http://www.boost.org/) and install it following the instructions outlined in the site. Then compile TREX in a similar manner as Europa: % cd $TREX_HOME % jam after that you can compile the binaries amc and sim % cd ctd2007 % jam amc % jam sim amc is the batch command that execute the model without any terminal interaction. sim is a debug interface that can be used to step the agent execution using a limited set of commands through the terminal. Finally, if you use the Monte-Carlo controller you need to compile batcher and samp % cd ctd2007 % jam batcher samp The trunk branch now assumes that batcher depends on samp so the compilation of samp is now done automatically. Still older versions (or other branches) did not enforce this dependency so it may be better to explicitly compile samp Using TREXTREX Configuration files :On $TREX_HOME/ctd2007 you can find a bunch of .cfg files. They are used by TREX to confiugure itself for the mission a non exhaustive description follow :
Note on AUV configurations files useful for simulation :all these files should be on $AUV_CONFIG_DIR Note that threadfish.shore has a ready to go binary for AUV-Linux. Log in as 'dorado1' and cd down to 'coding/auv-linux'. Starting a missionStarting AUV code for TREXThis is required only if TREX expect a connection with the vehicle otherwise you can go directly to the next section. On QNX % cd $AUV_HOME/altex/onboard/bin % ./vcsServer [-v] [-sim]
On Linux % omniNames& % notifd -c $OMNINOTIFY_HOME/channel.cfg& % cd $AUV_HOME/onboard/sampleConfig % ../bin/vcsServer -proc <proc>.cfg [-fastsim]
Starting TREX in batch mode% cd $TREX_HOME/ctd2007 % ./amc_o_rt <mission>.cfg [-fast|-sim] <nstep> Use <nstep> = 50
You can see TREX activity by looking on $TREX_LOG_DIR/latest/TREX.log % cd $TREX_LOG_DIR % tail -F latest/TREX.log Starting TREX in interactive mode% cd $TREX_HOME/ctd2007 % sim_o_rt <mission> [-sim] [<nstep>] Options: Q :- Quit N :- Next G :- Goto <tick> e.g. g100 R :- Reload Debug.cfg + :- enable pattern e.g. '+Agent' - :- disable pattern e.g. '-Agent' ! :- disable all debug messages > You can see here that the command is quite similar to amc except that it exepect the name of the <mission> instead of <mission>.cfg.
|
| Document generated by Confluence on Feb 04, 2026 08:05 |